// Normalization Midi  track events deltatime and event time length
function Normalized(track)
{
    function normDeltaTime(data){
        var index = 0;

        while(index < data.length - 1)
        {
            if(data[index].subtype === 'noteOff' && data[index+1].subtype === 'noteOn')
            {
                data[index].deltaTime += data[index+1].deltaTime;
                data[index+1].deltaTime = 0;
                index += 2;
            }else{ index++;}
        }
        return data;
    };

    function eventDurationTime(data){
        ;
    }
    

}